﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace SharedTypes
{
	public class MeshPart
	{
		public MeshPart(string name, string fragmentName)
		{
			this.Name = name;
			this.FragmentName = fragmentName;
			Vertices = new List<Vector3>();
			Indices = new List<int>();
		}

		private MeshPart()
		{
		}

		[ContentSerializer]
		public string Name { get; set; }

		[ContentSerializer]
		public string FragmentName { get; set; }

		[ContentSerializer]
		public MeshPart Parent { get; set; }

		[ContentSerializer]
		public List<MeshPart> Children { get; set; }

		[ContentSerializer]
		public Matrix AbsoluteTransform { get; set; }

		[ContentSerializer]
		public Matrix Transform { get; set; }

		[ContentSerializer]
		public List<Vector3> Vertices { get; set; }

		[ContentSerializer]
		public List<int> Indices { get; set; }
	}
}
